{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "c7c7613e",
   "metadata": {},
   "outputs": [],
   "source": [
    "from cgai_time.Time import TimeHandler"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "370c571b",
   "metadata": {},
   "outputs": [],
   "source": [
    "ct = TimeHandler"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "20a2a3ac",
   "metadata": {},
   "outputs": [],
   "source": [
    "start_time = '2021-8-2 00:00:00'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "1a1da11f",
   "metadata": {},
   "outputs": [
    {
     "ename": "TypeError",
     "evalue": "addTime() missing 1 required positional argument: 'str_time'",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mTypeError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[1;32m~\\AppData\\Local\\Temp/ipykernel_23280/3060895922.py\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mstart_time\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mct\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0maddTime\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstart_time\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0md\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;36m1\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mTypeError\u001b[0m: addTime() missing 1 required positional argument: 'str_time'"
     ]
    }
   ],
   "source": [
    "start_time = ct.addTime(start_time, d=1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "9ca03399",
   "metadata": {},
   "outputs": [
    {
     "ename": "TypeError",
     "evalue": "addTime() missing 1 required positional argument: 'str_time'",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mTypeError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[1;32m~\\AppData\\Local\\Temp/ipykernel_23280/105458120.py\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m      1\u001b[0m \u001b[0mstr_time\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;34m'2021-07-18 17:19:44'\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 2\u001b[1;33m \u001b[0mstart_time\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mct\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0maddTime\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstr_time\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0md\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;36m1\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mTypeError\u001b[0m: addTime() missing 1 required positional argument: 'str_time'"
     ]
    }
   ],
   "source": [
    "str_time = '2021-07-18 17:19:44'\n",
    "start_time = ct.addTime(str_time, d=1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "694fb52b",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1\n",
      "2\n",
      "3\n",
      "4\n",
      "5\n",
      "6\n"
     ]
    }
   ],
   "source": [
    "for i in range(1,7):\n",
    "    \n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "245c813c",
   "metadata": {},
   "outputs": [],
   "source": [
    "start_date = '2021-05-15'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "c1e0b093",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "str"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "type(start_date)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "706c63de",
   "metadata": {},
   "outputs": [
    {
     "ename": "TypeError",
     "evalue": "dateAdd() missing 1 required positional argument: 'days'",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mTypeError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[1;32m~\\AppData\\Local\\Temp/ipykernel_23280/3227090784.py\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mnew_date\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mct\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mdateAdd\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m'2021-07-20'\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;36m5\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;32mc:\\python39\\lib\\site-packages\\cgai_time\\Time.py\u001b[0m in \u001b[0;36mnew_func\u001b[1;34m(*args, **kwargs)\u001b[0m\n\u001b[0;32m    121\u001b[0m             \u001b[0marg\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mv\u001b[0m \u001b[1;32mif\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[0misinstance\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mv\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mtuple\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;32melse\u001b[0m \u001b[0mtuple2str\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mv\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    122\u001b[0m             \u001b[0mnew_kwargs\u001b[0m\u001b[1;33m[\u001b[0m\u001b[0mk\u001b[0m\u001b[1;33m]\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0marg\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 123\u001b[1;33m         \u001b[1;32mreturn\u001b[0m \u001b[0mfun\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m*\u001b[0m\u001b[0mnew_args\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m**\u001b[0m\u001b[0mnew_kwargs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    124\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    125\u001b[0m     \u001b[1;32mreturn\u001b[0m \u001b[0mnew_func\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;31mTypeError\u001b[0m: dateAdd() missing 1 required positional argument: 'days'"
     ]
    }
   ],
   "source": [
    "new_date = ct.dateAdd('2021-07-20',5)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "cbd072c9",
   "metadata": {},
   "outputs": [
    {
     "ename": "TypeError",
     "evalue": "getToday() missing 1 required positional argument: 'self'",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mTypeError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[1;32m~\\AppData\\Local\\Temp/ipykernel_23280/2504699888.py\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mtoday\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mct\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mgetToday\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mTypeError\u001b[0m: getToday() missing 1 required positional argument: 'self'"
     ]
    }
   ],
   "source": [
    "today = ct.getToday()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "id": "c1db35cb",
   "metadata": {},
   "outputs": [],
   "source": [
    "from cgai_time.Time import TimeHandler\n",
    "import cgai_time\n",
    "ct = TimeHandler()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "id": "aade2888",
   "metadata": {},
   "outputs": [],
   "source": [
    "today = ct.getToday()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "id": "1d4c2771",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'2021-08-18'"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "today"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "92224af9",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "931b98ed",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on module cgai_time.Time in cgai_time:\n",
      "\n",
      "NAME\n",
      "    cgai_time.Time - 日期处理类\n",
      "\n",
      "CLASSES\n",
      "    builtins.object\n",
      "        TimeHandler\n",
      "    \n",
      "    class TimeHandler(builtins.object)\n",
      "     |  Methods defined here:\n",
      "     |  \n",
      "     |  CTS(self)\n",
      "     |      获取当前时间戳\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  DHMS(self, seconds: int)\n",
      "     |      将给定秒数，转成 多少天,多少小时，多少分钟，多少秒描述\n",
      "     |      :param seconds: 秒数\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  StrTime(self)\n",
      "     |      获取当前格式化日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  __init__(self)\n",
      "     |      Initialize self.  See help(type(self)) for accurate signature.\n",
      "     |  \n",
      "     |  acrossMonths(self, start_date=None, end_date=None)\n",
      "     |      获取给定前后日期之间所跨月份\n",
      "     |      :param start_date:  起始日期   '2021-05-15' 或 (2021,5,15)\n",
      "     |      :param end_date:    结束日期   '2021-05-15' 或 (2021,5,15)\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  acrossWeeks(self, start_date=None, end_date=None)\n",
      "     |      获取指定前后日期所跨周\n",
      "     |      :param start_date:\n",
      "     |      :param end_date:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  acrossYears(self, start_date=None, end_date=None)\n",
      "     |      获取给定前后日期之间所跨年\n",
      "     |      :param start_date: 起始日期   '2021-05-15' 或 (2021,5,15)\n",
      "     |      :param end_date:   结束日期   '2021-05-15' 或 (2021,5,15)\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  addTime(self, str_time, d: int = 0, h: int = 0, m: int = 0, s: int = 0)\n",
      "     |      格式化字符串时间加法计算\n",
      "     |      :param str_time: 字符串格式日期时间\n",
      "     |      :param d:  天数\n",
      "     |      :param h:  小时\n",
      "     |      :param m:  分钟\n",
      "     |      :param s:  秒\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  d2h(self, day: int, getInt=False)\n",
      "     |      天数转小时数\n",
      "     |      :param day: 天数\n",
      "     |      :param getInt: 是否获取整数部分\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  d2m(self, days: int, getInt=False)\n",
      "     |      天数转分钟数\n",
      "     |      :param day: 天数\n",
      "     |      :param getInt: 是否获取整数部分\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  d2s(self, days: float, getInt=False)\n",
      "     |      天数转秒数\n",
      "     |      :param day: 天数\n",
      "     |      :param getInt: 是否获取整数部分\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  dateAdd(self, start_date, days)\n",
      "     |      最正确的日期加法\n",
      "     |      :param start_date:\n",
      "     |      :param days:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  dateSub(self, start_date, days)\n",
      "     |      最正确的日期加法\n",
      "     |      :param start_date:\n",
      "     |      :param days:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  deltaDays(self, start_date=None, end_date=None)\n",
      "     |      计算起始与结束日期长度\n",
      "     |      :param start_date: 起始日期   '2021-05-15' 或 (2021,5,15)\n",
      "     |      :param end_date:   结束日期   '2021-05-15' 或 (2021,5,15)\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  deltaTime(self, start_str_time, end_str_time)\n",
      "     |      计算两字符串日期时间相差秒数\n",
      "     |      :param start_str_time: '2021-07-18 17:19:44'\n",
      "     |      :param end_str_time:   '2021-07-18 22:32:11'\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getCurrentMonthStartAndEnd(self)\n",
      "     |      计算本月起始与结束日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getCurrentWeekStartAndEnd(self)\n",
      "     |      返回该周的开始和结束时间\n",
      "     |  \n",
      "     |  getDateList(self, start_date=None, end_date=None)\n",
      "     |      给定任意2个日期返回其中之间的所有日期\n",
      "     |      :param start_date:\n",
      "     |      :param end_date:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getDatesByNumber(self, start_date=None, end_date=None, number=0)\n",
      "     |      获取前后日期之间为星期几的日期\n",
      "     |      :param start_date:\n",
      "     |      :param end_date:\n",
      "     |      :param number:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getFridays(self, start_date=None, end_date=None)\n",
      "     |      获取前后日期之间为星期五的日期\n",
      "     |      :param start_date:  起始日期\n",
      "     |      :param end_date:    结束日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getLastMonth(self, month)\n",
      "     |      给定month获取上一个月的month\n",
      "     |      :param month:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getLastMonthDay(self, year, month)\n",
      "     |  \n",
      "     |  getLastMonthStartAndEnd(self)\n",
      "     |      计算上月起始与结束日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getLastWeekStartAndEnd(self)\n",
      "     |      获取上周起始与结束日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getMondays(self, start_date=None, end_date=None)\n",
      "     |      获取前后日期之间为星期一的日期\n",
      "     |      :param start_date: 起始日期\n",
      "     |      :param end_date:   结束日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getMonthDateList(self, int_year=None, int_month=None, date=None)\n",
      "     |      给定年份与月份，返回当前月份里的所有日期\n",
      "     |      注意：当给定date后将以date作为具体输入而无视int_year和int_month\n",
      "     |      :param int_year:  年份\n",
      "     |      :param int_month: 月份\n",
      "     |      :param date:  具体日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getMonthDayCount(self, int_year: int, int_month: int)\n",
      "     |      该函数获取给定月的所有日期数\n",
      "     |      :param int_year:\n",
      "     |      :param int_month:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getMonthStartAndEnd(self, int_year: int, int_month: int, int_day: int)\n",
      "     |      获取指定日期所在月份的起始与结束日期\n",
      "     |      :param date:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getMonthWeeks(self, int_year=None, int_month=None, date=None)\n",
      "     |      给定年与月，或者直接给一个具体日期date,返回该月所占周\n",
      "     |      注意：当给定date后将以date作为具体输入而无视int_year和int_month\n",
      "     |      :param int_year:  年份\n",
      "     |      :param int_month: 月份\n",
      "     |      :param date:  具体日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getNextMonth(self, int_month)\n",
      "     |      获取给定月份下一个月分\n",
      "     |      :param month:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getNextMonthStartAndEnd(self)\n",
      "     |      计算下月起始与结束日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getNextWeekStartAndEnd(self)\n",
      "     |      获取下周起始与结束日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getSaturdays(self, start_date=None, end_date=None)\n",
      "     |      获取前后日期之间为星期六的日期\n",
      "     |      :param start_date:  起始日期\n",
      "     |      :param end_date:    结束日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getSeconds(self, d=0, h=0, m=0)\n",
      "     |      将天，小时，分钟转成秒\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getSundays(self, start_date, end_date)\n",
      "     |      获取前后日期之间为星期天的日期\n",
      "     |      :param start_date:  起始日期\n",
      "     |      :param end_date:    结束日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getThursdays(self, start_date=None, end_date=None)\n",
      "     |      获取前后日期之间为星期四的日期\n",
      "     |      :param start_date:  起始日期\n",
      "     |      :param end_date:    结束日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getToday(self)\n",
      "     |      获取今日日期 格式\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getTuesdays(self, start_date=None, end_date=None)\n",
      "     |      获取前后日期之间为星期二的日期\n",
      "     |      :param start_date:  起始日期\n",
      "     |      :param end_date:    结束日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getWednesdays(self, start_date=None, end_date=None)\n",
      "     |      获取前后日期之间为星期三的日期\n",
      "     |      :param start_date:  起始日期\n",
      "     |      :param end_date:    结束日期\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getWeekDates(self, date)\n",
      "     |      获取某日所在整周日期列表\n",
      "     |      :param date:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getWeekStartAndEnd(self, year: int, month: int, day: int)\n",
      "     |      传入指定日期，返回该日期所在周的起始日期与结束日期\n",
      "     |      :param year:\n",
      "     |      :param month:\n",
      "     |      :param day:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getWeekdayCName(self, int_year: int, int_month: int, int_day: int)\n",
      "     |      根据日期返回当前中文星期名称\n",
      "     |      :param date:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getWeekdayNumber(self, int_year: int, int_month: int, int_day: int)\n",
      "     |      获取星期几\n",
      "     |      注意：星期一为1，日期一一对应，星期日为7\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  getYearDays(self, year: int)\n",
      "     |      获取指定年份的天数\n",
      "     |      :param yea:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  h2d(self, hours: int, getInt=False)\n",
      "     |      小时转天数\n",
      "     |      :param hour: 小时数\n",
      "     |      :param getInt: 是否获取整数部分\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  h2m(self, hour: int, getInt=False)\n",
      "     |      小时转分钟\n",
      "     |      :param hour: 小时数\n",
      "     |      :param getInt: 是否获取整数部分\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  h2s(self, hour: float, getInt=False)\n",
      "     |      小时转秒数\n",
      "     |      :param hour: 小时数\n",
      "     |      :param getInt: 是否获取整数部分\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  int2str(self, day)\n",
      "     |      如果day小于10，则返回加0字符串\n",
      "     |      :param day:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  isFriday(self, int_year: int, int_month: int, int_day: int)\n",
      "     |      是否为星期五\n",
      "     |      :param date:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  isLeapyear(self, year: int)\n",
      "     |      判定是否为闰年\n",
      "     |      :param year:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  isMonday(self, int_year: int, int_month: int, int_day: int)\n",
      "     |      是否为星期一\n",
      "     |      :param date:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  isMonth31(self, month)\n",
      "     |      判定该月是否为31天\n",
      "     |      :param month: 月份\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  isSaturday(self, int_year: int, int_month: int, int_day: int)\n",
      "     |      是否为星期一\n",
      "     |      :param date:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  isSunday(self, int_year: int, int_month: int, int_day: int)\n",
      "     |      是否为星期一\n",
      "     |      :param date:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  isThursday(self, int_year: int, int_month: int, int_day: int)\n",
      "     |      是否为星期四\n",
      "     |      :param date:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  isTuesday(self, int_year: int, int_month: int, int_day: int)\n",
      "     |      是否为星期二\n",
      "     |      :param date:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  isWednesday(self, int_year: int, int_month: int, int_day: int)\n",
      "     |      是否为星期三\n",
      "     |      :param date:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  isWeekend(self, int_year: int, int_month: int, int_day: int)\n",
      "     |      该函数用来判断给定日期是否为周末.\n",
      "     |      :param date: 格式类似 2019-06-05\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  m2d(self, minutes: int, getInt=False)\n",
      "     |      分钟转天数\n",
      "     |      :param minute: 分钟数\n",
      "     |      :param getInt: 是否获取整数部分\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  m2h(self, minutes: int, getInt=False)\n",
      "     |      分钟转小时\n",
      "     |      :param minute:\n",
      "     |      :param getInt: 是否获取整数部分\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  m2s(self, minutes: float, getInt=False)\n",
      "     |      分钟数转秒数\n",
      "     |      :param minute: 分钟数\n",
      "     |      :param getInt: 是否获取整数部分\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  s2d(self, seconds: int, getInt=False)\n",
      "     |      秒转天数\n",
      "     |      :param seconds: 秒数\n",
      "     |      :param getInt: 是否获取整数部分\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  s2h(self, seconds: object, getInt: object = False) -> object\n",
      "     |      秒转小时\n",
      "     |      :param seconds: 秒数\n",
      "     |      :param getInt: 是否获取整数部分\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  s2m(self, seconds: int, getInt=False)\n",
      "     |      秒转分钟\n",
      "     |      :param seconds: 秒数\n",
      "     |      :param getInt: 是否获取整数部分\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  str2int(self, str_day)\n",
      "     |      将当前日数转成整数,eg: str 05 => int 5\n",
      "     |      :param day:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  strDate2TupleDate(self, str_date: str)\n",
      "     |      将2021-07-18这种格式转化成(2021,7,18)这种格式\n",
      "     |      :param str_date:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  strTime2TimeStamp(self, str_time: str)\n",
      "     |      将字符串时间数据转成时间戳\n",
      "     |      :param str_time:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  subTime(self, str_time, d: int = 0, h: int = 0, m: int = 0, s: int = 0)\n",
      "     |      格式化字符串时间减法计算\n",
      "     |      :param str_time: 字符串格式日期时间\n",
      "     |      :param d:  天数\n",
      "     |      :param h:  小时\n",
      "     |      :param m:  分钟\n",
      "     |      :param s:  秒\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  timeStamp2StrTime(self, time_stamp: float)\n",
      "     |      将时间戳转成字符串日期时间\n",
      "     |      :param time_stamp:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  tupleDate2StrDate(self, tuple_date: tuple)\n",
      "     |      将(2021,7,18)转化为'2021-07-18'\n",
      "     |      :param tuple_date:\n",
      "     |      :return:\n",
      "     |  \n",
      "     |  ----------------------------------------------------------------------\n",
      "     |  Data descriptors defined here:\n",
      "     |  \n",
      "     |  __dict__\n",
      "     |      dictionary for instance variables (if defined)\n",
      "     |  \n",
      "     |  __weakref__\n",
      "     |      list of weak references to the object (if defined)\n",
      "\n",
      "FUNCTIONS\n",
      "    cgai_time_args_int(fun)\n",
      "    \n",
      "    cgai_time_args_str(fun)\n",
      "        返回字符串格式\n",
      "        :param fun:\n",
      "        :return:\n",
      "    \n",
      "    cgai_time_args_strs(fun)\n",
      "        返回字符串格式\n",
      "        :param fun:\n",
      "        :return:\n",
      "    \n",
      "    cgai_time_args_tuple(fun)\n",
      "    \n",
      "    clip_list(src_list, count)\n",
      "\n",
      "DATA\n",
      "    D = 86400\n",
      "    H = 3600\n",
      "    M = 60\n",
      "    S = 1\n",
      "\n",
      "FILE\n",
      "    c:\\python39\\lib\\site-packages\\cgai_time\\time.py\n",
      "\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(cgai_time.Time)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ae23e75b",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
